<template>
  <div>
    <OutPdf v-if="type === 1"></OutPdf>
    <A4Index v-if="type === 2"></A4Index>
    <A4Index2 v-if="type === 3"></A4Index2>
    <A4Index3 v-if="type === 4"></A4Index3>
    <div class="btn-group">
      <el-button type="primary" @click="type = 1">常规导出测试</el-button>
      <el-button type="primary" @click="type = 2">A4标准页边距测试</el-button>
      <el-button type="primary" @click="type = 3"
        >A4标准页边距和套红头测试</el-button
      >
      <el-button type="primary" @click="type = 4">测试（不用管)</el-button>
    </div>
  </div>
</template>

<script>
import OutPdf from "./index.vue";
import A4Index from "./A4Index.vue";
import A4Index2 from "./A4Index2.vue";
import A4Index3 from "./A4Index3.vue";
export default {
  name: "home",
  components: {
    OutPdf,
    A4Index,
    A4Index2,
    A4Index3,
  },
  data() {
    return {
      type: 1,
    };
  },
};
</script>

<style lang="less">
body,
html {
  padding: 0;
  margin: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  // margin-top: 60px;
}
body {
  margin: 0;
  padding: 0;
}

.btn-group {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
}
</style>
